package Teamdomain;

/**
 * @program: Demo2
 * @description:
 * @author: yan guang
 * @create: 2020-04-22 09:59
 */
public class Designer extends Progammer {
        private double bonus;

    public Designer(int id, String name, int age, double salary, double bonus,Equipment equipment) {
        super(id, name, age, salary, equipment);
        this.bonus=bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    @Override
    public String toString() {
        return Detil()+getEquipment()+getStatus()+bonus;
    }
}
